import type { RouteConfigsTable } from "/#/index";
import { $t } from "/@/plugins/i18n";

const issueRouter: RouteConfigsTable = {
  path: "/issue",
  redirect: "/issue/index",
  meta: {
    icon: "refresh-right",
    title: $t("menus.hsissue"),
    rank: 5
  },
  children: [
    {
      path: "/issue/index",
      name: "IssueIndex",
      component: () => import("/@/views/issue/index.vue"),
      meta: {
        title: $t("menus.hsissue"),
        roles: ["admin", "super", "warehouse", "user"]
      }
    }
  ]
};

export default issueRouter;
